package com.example.Laboratory.Service;

import com.example.Laboratory.Entity.News;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

@Service
public interface NewsService {
    //增加新闻信息
    String addNews(News t, MultipartFile File1, MultipartFile File2);

    //删除新闻
    int deleteNews(int news_id);

    //修改新闻
    String reviseNews(News t,MultipartFile File1);

    //单条查找新闻
    List<News> researchNews1(int news_id);

    //多条查找新闻
    List<News> researchNews2();
}
